package com.stnet.service.enterprice.chinamobile;

import java.util.List;

import com.modules.commons.Pager;
import com.stnet.bases.BaseManagerDaoImpl;
import com.stnet.entity.Transfer;
import com.stnet.entity.Users;

/**
 * @author Messcat
 * @version 1.1
 * 
 */
public class TransferManagerDaoImpl extends BaseManagerDaoImpl implements TransferManagerDao {

	public TransferManagerDaoImpl() {
	}

	public void addTransfer(Transfer transfer) {

		transferDao.save(transfer);
	}

	public void deleteTransfer(Long id) {
		transferDao.delete(id);
	}

	public Pager findTransfer(int pageSize, int pageNo, String statu) {
		Pager pager = transferDao.getObjectListByClass(pageSize, pageNo, Transfer.class, statu);
		return pager;
	}

	public Transfer getTransfer(Long id) {
		return transferDao.get(id);
	}

	public void updateTransfer(Transfer transfer) {
		transferDao.update(transfer);
	}

	/**
	 * 二次开发
	 * */
	public List<Transfer> findTransferByAgent(Long agent) {
		return this.transferDao.findTransferByAgent(agent);
	}

	public Pager getListByAgent(int pageSize, int pageNo, Long agent) {
		return this.transferDao.getListByAgent(pageSize, pageNo, agent);
	}

}